<template>
  <div>
      <h2 @click="showName">学生姓名：{{name}}</h2>
      <h2>学生年龄：{{age}}</h2>
  </div>
</template>

<script>
  // 引入mixin
  // import {hunhe,hunhe2} from "@/mixin";

  export default {
    name: 'Student',
    data(){
      return{
        name:'zhangsan',
        age: 18,
        x: 666
      }
    },
/*    // 局部引入
    mixins:[hunhe, hunhe2]*/
  }
</script>